import type { IContentConfigProps } from '@/components/page-content/type'

const contentConfig: IContentConfigProps = {
  pageName: 'department',
  header: {
    title: '部门列表',
    btnTitle: '新建部门'
  },
  propsList: [
    { type: 'selection', width: '60px' },
    { type: 'index', label: '序号', width: '60px' },
    { label: '部门名称', prop: 'name' },

    // slotName 插槽名称
    { type: 'custom', label: '部门领导', prop: 'leader', slotName: 'leader' },

    { label: '上级部门', prop: 'parentId' },

    { type: 'custom', label: '创建时间', prop: 'createAt', slotName: 'createAt' },
    { type: 'custom', label: '更新时间', prop: 'updateAt', slotName: 'updateAt' }
  ]
}

export default contentConfig
